package it.infodea.tapestrydea.pages.demodea;

import it.infodea.tapestrydea.services.breadcrumb.BreadcrumbService;
import it.infodea.tapestrydea.support.annotations.PageInfo;
import it.infodea.tapestrydea.support.enumerations.SecurityGroup;

import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.annotations.SetupRender;
import org.apache.tapestry5.ioc.annotations.Inject;

@PageInfo(category="demo", allowedSecurityGroup=SecurityGroup.ANONYMOUS, mode = PageInfo.MODE_NORMAL)
public class BreadcrumbDemoDea2 {
	
	@Inject
	private ComponentResources resources;

	@Inject
	private BreadcrumbService breadcrumbService;

	@SetupRender
	void setup() {
		String category = "bc-demo";
		String label = resources.getMessages().get("demodea_breadcrumbdemodea2-breadcrumb-label");
		breadcrumbService.addBreadcrumb(resources, category, label);
	}

}
